package com.search.entity;

import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;
import org.springframework.data.elasticsearch.annotations.Mapping;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Document(indexName = "xiangyuantang-doctor", type = "doctor")
public class Doctor implements Serializable {

    @Id
    private Long userId;

    @Field(type = FieldType.Text)
    private String name;

    @Field(type = FieldType.Text)
    private String avatar;

    @Field(type = FieldType.Text)
    private String idcard;

    @Field(type = FieldType.Long)
    private Long hospitalId;

    @Field(type = FieldType.Text)
    private String hospital;

    @Field(type = FieldType.Long)
    private Long jobtitleId;

    @Field(type = FieldType.Text)
    private String jobtitle;

    @Field(type = FieldType.Integer)
    private Integer cityId;

    @Field(type = FieldType.Long)
    private Long departmentId;

    @Field(type = FieldType.Text)
    private String department;

    @Field(type = FieldType.Integer)
    private Integer positiveRating;

    @Field(type = FieldType.Integer)
    private Integer avgReponse;

    @Field(type = FieldType.Integer)
    private Integer serviceNum;

    @Field(type = FieldType.Double)
    private BigDecimal minServicePrice;

    @Field(type = FieldType.Text)
    private String brief;

    @Field(type = FieldType.Text)
    private String specially;

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getIdcard() {
        return idcard;
    }

    public void setIdcard(String idcard) {
        this.idcard = idcard;
    }

    public Long getHospitalId() {
        return hospitalId;
    }

    public void setHospitalId(Long hospitalId) {
        this.hospitalId = hospitalId;
    }

    public String getHospital() {
        return hospital;
    }

    public void setHospital(String hospital) {
        this.hospital = hospital;
    }

    public Long getJobtitleId() {
        return jobtitleId;
    }

    public void setJobtitleId(Long jobtitleId) {
        this.jobtitleId = jobtitleId;
    }

    public String getJobtitle() {
        return jobtitle;
    }

    public void setJobtitle(String jobtitle) {
        this.jobtitle = jobtitle;
    }

    public Long getDepartmentId() {
        return departmentId;
    }

    public void setDepartmentId(Long departmentId) {
        this.departmentId = departmentId;
    }

    public String getDepartment() {
        return department;
    }

    public void setDepartment(String department) {
        this.department = department;
    }

    public Integer getPositiveRating() {
        return positiveRating;
    }

    public void setPositiveRating(Integer positiveRating) {
        this.positiveRating = positiveRating;
    }

    public Integer getAvgReponse() {
        return avgReponse;
    }

    public void setAvgReponse(Integer avgReponse) {
        this.avgReponse = avgReponse;
    }

    public Integer getServiceNum() {
        return serviceNum;
    }

    public void setServiceNum(Integer serviceNum) {
        this.serviceNum = serviceNum;
    }

    public String getBrief() {
        return brief;
    }

    public void setBrief(String brief) {
        this.brief = brief;
    }

    public String getSpecially() {
        return specially;
    }

    public void setSpecially(String specially) {
        this.specially = specially;
    }

    public BigDecimal getMinServicePrice() {
        return minServicePrice;
    }

    public void setMinServicePrice(BigDecimal minServicePrice) {
        this.minServicePrice = minServicePrice;
    }

    public Integer getCityId() {
        return cityId;
    }

    public void setCityId(Integer cityId) {
        this.cityId = cityId;
    }
}
